package com.freshfresh.adapter;


import android.app.Activity;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;

import com.freshfresh.activity.R;
import com.freshfresh.activity.home.ShakeActivity;

public class IndexFourQuick implements OnClickListener
  
{
  private Activity activity;

  public View getView(Activity paramMainActivity)
  {
    this.activity = paramMainActivity;
    View localView = LayoutInflater.from(paramMainActivity).inflate(R.layout.index_list_item2, null);
    ((LinearLayout)localView.findViewById(R.id.ll_shake)).setOnClickListener(this);
//    ((LinearLayout)localView.findViewById(2131165758)).setOnClickListener(this);
//    ((LinearLayout)localView.findViewById(2131165759)).setOnClickListener(this);
//    ((LinearLayout)localView.findViewById(2131165760)).setOnClickListener(this);
    
    return localView;
  }

@Override
public void onClick(View arg0) {
	// TODO Auto-generated method stub
	switch (arg0.getId()) {
	case R.id.ll_shake:
		Intent localIntent4 = new Intent(this.activity, ShakeActivity.class);
		activity.startActivity(localIntent4);
		break;

	default:
		break;
	}
}

//  public void onClick(View paramView)
//  {
//    switch (paramView.getId())
//    {
//    default:
//      return;
//    case 2131165757:
//      Intent localIntent4 = new Intent(this.activity, ShakeActivity.class);
//      this.activity.startActivity(localIntent4);
//      return;
//    case 2131165758:
//      Intent localIntent3 = new Intent(this.activity, ExclusiveActivity.class);
//      localIntent3.putExtra("categoryid", "334");
//      localIntent3.putExtra("name", "手机专享");
//      this.activity.startActivity(localIntent3);
//      return;
//    case 2131165759:
//      Intent localIntent2 = new Intent(this.activity, EchargeActivity.class);
//      this.activity.startActivity(localIntent2);
//      return;
//    case 2131165760:
//    }
//    if (this.activity.getUserInfo() == null)
//    {
//      this.activity.leadToLogin("亲，您还没登录，请先登录");
//      return;
//    }
//    Intent localIntent1 = new Intent(this.activity, MyFavoriteActivity.class);
//    this.activity.startActivity(localIntent1);
//  }
}